import Taro from "@tarojs/taro";
import { View } from '@tarojs/components'
import styles from './index.module.scss';

export default function Index() {

  function toPage(url: string){
    Taro.navigateTo({
      url,
    });
  }

  return (
    <View>
      <h1 className={styles.title}>床位管理系统</h1>
      <View className={styles.navWrapper}>
        <View className={styles.item} onClick={()=>toPage('pages/info/index')}>信息录入</View>
        <View className={styles.item} onClick={()=>toPage('pages/cureSearch/index')}>治疗查询</View>
        <View className={styles.item} onClick={()=>toPage('pages/pipeline/index')}>管道管理</View>
        {/*<View className={styles.item}>治疗选项维护</View>*/}
      </View>
    </View>
  )
}
